package cz.cvut.fel.gfupan.gui.action;

import cz.cvut.fel.gfupan.gui.Session;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JDialog;

public class DemoAction implements ActionListener {

    private JDialog root;

    public DemoAction(JDialog root) {
        this.root = root;
    }

    @Override
    public void actionPerformed(ActionEvent ae) {
        if (root != null) {
            root.dispose();
        }
        Session.getInstance().demoMeasure();
    }
}

